<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>添加百度账号</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/layuiadmin/layui/css/layui.css" media="all">

</head>
<body>

<div class="layui-form" style="padding: 20px 30px 0 0;">

    <div class="layui-form-item report_unfull_block todayRef">
        <label class="layui-form-label">账户名</label>
        <div class="layui-input-block">
            <input type="text" name="accountname" placeholder="请填写账户名" autocomplete="off" class="layui-input" lay-verify="accountname" />
        </div>
    </div>


    <div class="layui-form-item report_unfull_block todayRef">
        <label class="layui-form-label" id="akey_hover">akey<i class="layui-icon layui-icon-about"></i>
        </label>
        <div class="layui-input-block">
            <input type="text" name="akey" placeholder="请填写账户akey" autocomplete="off" class="layui-input" lay-verify="akey" />
        </div>
    </div>


    <div class="layui-form-item layui-hide">
        <button class="layui-btn" lay-submit lay-filter="LAY-data-add-submit" id="LAY-data-add-submit">提交</button>
    </div>
</div>
<script src="/static/layuiadmin/layui/layui.js"></script>
<script>
    layui.config({
        base: '/static/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index', //主入口模块
        xmSelect: 'xmSelect/xm-select'
    }).use(['index', 'form','xmSelect'], function(){
        var $ = layui.$
            ,form = layui.form
            ,xmSelect = layui.xmSelect;

        $("#akey_hover").hover(function () {
            layer.tips('<p style="padding-top:2px;"><img src="/static/imgs/tip_akey.jpg" width="300"></p>', this, {
                tips: [1, "#333"],
                time: 80000,
                area: ['320px', '150px'],
            });
        },function () {
            layer.closeAll('tips');
        });


    });

        form.verify({

            accountname: function (value) {
                if(value < 1){
                    return '请填写账户名';
                }
            },
            akey: function (value) {
                if(value < 1){
                    return '请填写账户akey';
                }
            },

        });



</script>
</body>
</html>